import request from "@/utils/request";
import { param } from "@/utils";

//合同类型
export const contractType = () => {
    return request({
        url: `/contract/template/type/list`,
        method: 'get'
    })
}

//统计
export const statisticsAmount = (data) => {
    return request({
        url: `/finance/contractProfit/statistics`,
        method: 'post',
        data
    })
}
//表格数据
export const contractProfitTable = (query,data) => {
    return request({
        url: `/finance/contractProfit/page?${param(query)}`,
        method: 'post',
        data
    })
}
//导出
export const exportTableData = (data) => {
    return request({
        url: `/finance//contractProfit/export`,
        method: 'post',
        data,
        responseType: 'blob'
    })
}